﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/BaseMaster.master" 
CodeFile="login.aspx.cs" Inherits="MasterPages_Default" %>
<asp:Content ID="Content" ContentPlaceHolderID="Base_ContentPlaceHolder" Runat="Server">
<form runat="server" defaultbutton="login_btn">
<div id="restaurant_login" style="text-align:center">
<br />
<br />
<br />
    <table style="text-align:left">
        <tr>
            <td><asp:Label ID="username_table" runat="server" Text="用户名"></asp:Label></td>
            <td><asp:TextBox ID="username_textbox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="username_required_validator" runat="server"
                 ControlToValidate="username_textbox" ErrorMessage="*" ValidationGroup="login">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="pwd_lable" runat="server" Text="密码"></asp:Label></td>
            <td><asp:TextBox ID="pwd_textbox" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="pwd_required_validator" runat="server"
                 ControlToValidate="pwd_textbox" ErrorMessage="*" ValidationGroup="login">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Button ID="login_btn" runat="server" Text="登录"
                OnClick="OnLoginBtnClick" ValidationGroup="login" /></td>
            <td><asp:Button ID="register_btn" runat="server" Text="注册"
                OnClick="OnRegisterBtnClick" /></td>
        </tr>
        <tr>
            <td colspan="2"><asp:Label ID="notice_lable" runat="server"></asp:Label></td>
        </tr>
    </table>
<br />
<br />
<br />
</div>
</form>
</asp:Content>

